<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'GongChengXM_List.jsp' starting page</title>

		<script type="text/javascript" src="js/main.js"></script>

	</head>

	<body>

		<form action="" method="post" name="myForm1">
			<input type="hidden" id="id" value="" />
			<table>
				<tr>
					<td>
						<input type="button" value="增加项目信息" onclick="GongCheng_Insert();" />
					</td>
					<td>
						<input type="button" value="修改项目信息" onclick="GongCheng_Update();" />
					</td>
					<td>
						<input type="button" value="删除项目信息" onclick="GongCheng_Delete();" />
					</td>
					<td>
						<input type="button" id="XiangMuSP" value="管理项目审批信息"
							onclick="myForm1_submit(id);" />
					</td>
					<td>
						<input type="button" id="CanJianQY" value="管理参建企业信息"
							onclick="myForm1_submit(id);" />
					</td>
					<td>
						<input type="button" id="ZhengDiCQ" value="管理征地拆迁信息"
							onclick="myForm1_submit(id);" />
					</td>
					<td>
						<input type="button" id="ZhongDaSJBG" value="管理重大设计变更信息"
							onclick="myForm1_submit(id);" />
					</td>
					<td>
						<input type="button" id="BiaoDuan" value="管理标段信息"
							onclick="myForm1_submit(id);" />
					</td>
				</tr>
			</table>
		</form>
		
		<form action="" method="post" name="myForm2">
			<input type="hidden" id="currentPage"
				value="<%=request.getAttribute("pageNum")%>" />
			<input type="hidden" id="pageSize" value="3" />
			<input type="hidden" id="totalPage"
				value="<%=request.getAttribute("pageCount")%>" />
			<table id="myForm2_table" border="1">
				<tbody>
					<tr>
						<td colspan="4">
							先选择项目 再点击上面按钮操作
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							项目名称
						</td>
						<td>
							计划开工日期
						</td>
						<td>
							计划竣工日期
						</td>
					</tr>
					<%
						List gongChengList = (List) request.getAttribute("gongChengList");
						for (int i = 0; i < gongChengList.size(); i++) {
							Map map = (Map) gongChengList.get(i);
					%>
					<tr id="tr<%=map.get("ID")%>">
						<td>
							<input id="<%=map.get("ID")%>" type="checkbox" name="myCheckbox"
								onclick="checkbox_check(<%=map.get("ID")%>);" />
						</td>
						<td>
							<a
								href="viewGongCheng?id=<%=map.get("ID")%>&viewOrUpdate='view'"><%=map.get("XIANGMUMC")%></a>
						</td>
						<td><%=map.get("JIHUAKGRQ")%></td>
						<td><%=map.get("JIHUAJGRQ")%></td>
					</tr>
					<%
						}
					%>
					<tr>
						<td colspan="4">
							<span id="homepage" onclick="homePage()">首页</span><span
								id="prePage" onclick="prePage()">上一页</span>第
							<span id="currentPageSpan"><%=request.getAttribute("pageNum")%></span><span
								id="totalPageSpan">/<%=request.getAttribute("pageCount")%></span>页
							<span id="nextPage" onclick="nextPage()">下一页</span><span
								id="endPage" onclick="endPage()">末页</span>
						</td>
					</tr>
				</tbody>
			</table>
		</form>

	</body>
</html>
